﻿using System;
using System.Windows;
using System.Windows.Controls;

namespace FxWinSuper.UI.Controls
{
	/// <summary>
	/// FxContextMenu.xaml 的交互逻辑
	/// </summary>
	public partial class FxContextMenu : StackPanel
	{
		public FxContextMenu()
		{
			InitializeComponent();
		}

		public void AddSubItem(FxContextMenuItem item)
		{
			this.Children.Add(item);
		}

		public void AddSubItem(UIElement item)
		{
			this.Children.Add(item);
		}

		public void InsertBeforeSubItem(UIElement item)
		{
			this.Children.Insert(0, item);
		}

		public void InsertBeforeSubItem(FxContextMenuItem item)
		{
			this.Children.Insert(0, item);
		}
	}
}
